import React, { Component, PropTypes } from 'react'
import { Digit } from './'

class Clock extends Component {
  render() {
    return (
      <div>
        <h2>Clock</h2>
        <Digit value={this.props.hours} />{' : '}
        <Digit value={this.props.minutes} />{' : '}
        <Digit value={this.props.seconds} />{' . '}
        <Digit value={this.props.tenths} />
      </div>
    )
  }
}

export default Clock